from django.test import TestCase
import coreapi

# Initialize a client & load the schema document
client = coreapi.Client()
schema = client.get("http://www.lll.plus:9091/api/docs/")

# Interact with the API endpoint
action = ["material", "read"]
params = {
    "id": '3',
}
result = client.action(schema, action, params=params)
print(result)